﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Runtime.Serialization;
using System.ServiceModel;
using System.Text;
using bank.DTOs;

namespace OurServices.BankServices
{
    // NOTE: You can use the "Rename" command on the "Refactor" menu to change the interface name "IFundTransf" in both code and config file together.
    [ServiceContract]
    public interface IFundTransf
    {

        [OperationContract]
        CustomerDetails GetCustDt();

        [OperationContract]
        void SaveCustomer(CustomerDetails csd);

        [OperationContract]
        bool Trans(int acNo, int amt);

        [OperationContract]
        int ChkBalance(int acNo, int brno);

        [OperationContract]
        [FaultContract(typeof(LowValueException))]
        bool AddCustomer(Customer customer);

        [OperationContract]
        Customer GetCustomer(int custId);
    }
}
